﻿namespace BusinessBingo.Queries
{
    public class Pagination
    {
        public int RowFrom { get; private set; }
        public int RowTo { get; private set; }
        public int Page { get; set; }
        public int PageSize { get; set; }

        public  Pagination(int page, int pageSize)
        {
            this.Page = page;
            this.PageSize = pageSize;

            this.RowFrom = this.Page*this.PageSize - this.PageSize;
            this.RowTo = this.RowFrom + this.PageSize;
        }
    }
}